﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PIPInfoForW.aspx.cs" Inherits="Hisun.View.PIPDeliverInfo.PIPInfoForW" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>

</head>
<body>
    <form id="form1" runat="server">
       <div class =" CommonPage_MainPanel">
    <div class ="CommonPage_Banner"><div class = "CommomPage_Title">中间体W系数</div></div>
    <div class ="CommonPage_Body">

        <table style ="width:100%;" >
            <tr>
                <td>
                   
                </td>
            </tr>
            <tr>
                <td >
                    <asp:Label ID="Label1" runat="server" Text="作业中心：" SkinID="Label"></asp:Label>
                    <asp:DropDownList ID="DropDownList_CostCenterId" runat="server" Height="24px" 
                        Width="180px" AutoPostBack="True" 
                        onselectedindexchanged="DropDownList_CostCenterId_SelectedIndexChanged" 
                        SkinID="DropdownList">
                    </asp:DropDownList>
                    <asp:Label ID="Label2" runat="server" Text="作业中心产品：" SkinID="Label"></asp:Label>
                    <asp:DropDownList ID="DropDownList_PIPId" runat="server" 
                        DataSourceID="LinqDataSource1" DataTextField="中间体名称" DataValueField="中间体ID" 
                        Height="24px" Width="180px" SkinID="DropdownList">
                    </asp:DropDownList>
                    <asp:Button SkinID = "Button" ID="Button_Query" runat="server" onclick="Button_Query_Click" 
                        Text="查询" />
                </td>
            </tr>
            <tr>
                <td >
                    &nbsp;</td>
            </tr>
            <tr>
                <td >
                    <table >
                        <tr>
                            <td >
                    <asp:Label ID="Label19" runat="server" Text="作业中心类型：" SkinID="Label"></asp:Label>
                            </td>
                            <td colspan="3">
                    <asp:DropDownList ID="DropDownList_Check" runat="server" 
                        onselectedindexchanged="DropDownList_Check_SelectedIndexChanged" 
                        AutoPostBack="True" SkinID="DropdownList">
                        <asp:ListItem Value="">请选择类型</asp:ListItem>
                        <asp:ListItem Value="0">发酵</asp:ListItem>
                        <asp:ListItem Value="1">提取、合成</asp:ListItem>
                        <asp:ListItem Value="2">精制</asp:ListItem>
                        <asp:ListItem Value="3">板框</asp:ListItem>
                        <asp:ListItem Value="4">气流干燥</asp:ListItem>
                        <asp:ListItem Value="5">合成、氢化、结晶离心</asp:ListItem>
                        <asp:ListItem Value="6">合成精制、冻干</asp:ListItem>
                        <asp:ListItem Value="7">溶媒回收</asp:ListItem>
                        <asp:ListItem Value="8">喷雾干燥</asp:ListItem>
                        <asp:ListItem Value="9">预混、粉剂</asp:ListItem>
                        <asp:ListItem Value="10">樟脑、分装、粉碎</asp:ListItem>
                        <asp:ListItem Value="12">中药</asp:ListItem>
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="DropDownList_Check" ErrorMessage="请选择一种作业中心类型" 
                        ValidationGroup="Group"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td >
                                <asp:Label ID="Label_Amount" runat="server" Text="转出数量：" SkinID="Label"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="TextBox_Suliang" runat="server" SkinID="TextBox"></asp:TextBox>
                                <asp:CompareValidator ID="CompareValidator1" runat="server" 
                                    ControlToValidate="TextBox_Suliang" ErrorMessage="*" Operator="DataTypeCheck" 
                                    Type="Double" ValidationGroup="Group"></asp:CompareValidator>
                            </td>
                            <td>
                                <asp:Label ID="Label_Unit" runat="server" style="text-align: left" Text="计量单位："></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="TextBox_Unit" runat="server" ReadOnly="True" SkinID="TextBox"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td >
                                <asp:Label ID="Label_zhuangchuPishu" runat="server" Text="转出批数：" SkinID="Label"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="TextBox_ZhuangChuPishu" runat="server" SkinID="TextBox"></asp:TextBox>
                                <asp:CompareValidator ID="CompareValidator3" runat="server" 
                                    ControlToValidate="TextBox_ZhuangChuPishu" ErrorMessage="*" 
                                    Operator="DataTypeCheck" Type="Double" ValidationGroup="Group"></asp:CompareValidator>
                            </td>
                            <td>
                                <asp:Label ID="Label_zhuanqupishi" runat="server" Text="转出批时："></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="TextBox_ZhuangChuPiShi" runat="server" SkinID="TextBox"></asp:TextBox>
                                <asp:CompareValidator ID="CompareValidator4" runat="server" 
                                    ControlToValidate="TextBox_ZhuangChuPiShi" ErrorMessage="*" 
                                    Operator="DataTypeCheck" Type="Double" ValidationGroup="Group"></asp:CompareValidator>
                            </td>
                        </tr>
                        <tr>
                            <td >
                                <asp:Label ID="Label_jiechunpishu" runat="server" Text="结存批数：" SkinID="Label"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="TextBox_JieChunPiShu" runat="server" SkinID="TextBox"></asp:TextBox>
                                <asp:CompareValidator ID="CompareValidator5" runat="server" 
                                    ControlToValidate="TextBox_JieChunPiShu" ErrorMessage="*" 
                                    Operator="DataTypeCheck" Type="Double" ValidationGroup="Group"></asp:CompareValidator>
                            </td>
                            <td>
                                <asp:Label ID="Label_jiechunpishi" runat="server" Text="结存批时：" SkinID="Label"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="TextBox_JieChunPiShi" runat="server" SkinID="TextBox"></asp:TextBox>
                                <asp:CompareValidator ID="CompareValidator6" runat="server" 
                                    ControlToValidate="TextBox_JieChunPiShi" ErrorMessage="*" 
                                    Operator="DataTypeCheck" Type="Double" ValidationGroup="Group"></asp:CompareValidator>
                            </td>
                        </tr>
                        <tr>
                            <td >
                                &nbsp;</td>
                            <td>
                                &nbsp;</td>
                            <td>
                                &nbsp;</td>
                            <td>
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td >
                                <asp:Label ID="Label_daijianpishu" runat="server" Text="待检批数：" SkinID="Label"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="TextBox_DaiJianPishu" runat="server" SkinID="TextBox"></asp:TextBox>
                                <asp:CompareValidator ID="CompareValidator7" runat="server" 
                                    ControlToValidate="TextBox_DaiJianPishu" ErrorMessage="*" 
                                    Operator="DataTypeCheck" Type="Double" ValidationGroup="Group"></asp:CompareValidator>
                            </td>
                            <td>
                                <asp:Label ID="Label_daijianpishi" runat="server" Text="待检批时：" SkinID="Label"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="TextBox_DaiJianPishi" runat="server" SkinID="TextBox"></asp:TextBox>
                                <asp:CompareValidator ID="CompareValidator8" runat="server" 
                                    ControlToValidate="TextBox_DaiJianPishi" ErrorMessage="*" 
                                    Operator="DataTypeCheck" Type="Double" ValidationGroup="Group"></asp:CompareValidator>
                            </td>
                        </tr>
                        <tr>
                            <td >
                                <asp:Label ID="Label_daifangongpishu" runat="server" Text="待返工批数：" SkinID="Label"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="TextBox_DaiFanGongPishu" runat="server" SkinID="TextBox"></asp:TextBox>
                                <asp:CompareValidator ID="CompareValidator9" runat="server" 
                                    ControlToValidate="TextBox_DaiFanGongPishu" ErrorMessage="*" 
                                    Operator="DataTypeCheck" Type="Double"></asp:CompareValidator>
                            </td>
                            <td>
                                <asp:Label ID="Label_daifangongpishi" runat="server" Text="待返工批时：" SkinID="Label"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="TextBox_DaiFanGongPishi" runat="server" SkinID="TextBox"></asp:TextBox>
                                <asp:CompareValidator ID="CompareValidator10" runat="server" 
                                    ControlToValidate="TextBox_DaiFanGongPishi" ErrorMessage="*" 
                                    Operator="DataTypeCheck" Type="Double" ValidationGroup="Group"></asp:CompareValidator>
                            </td>
                        </tr>
                        <tr>
                            <td >
                                <asp:Label ID="Label_ZaiXianPishu" runat="server" Text="在线批数：" SkinID="Label"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="TextBox_ZaiXianPiShu" runat="server" SkinID="TextBox"></asp:TextBox>
                                <asp:CompareValidator ID="CompareValidator11" runat="server" 
                                    ControlToValidate="TextBox_ZaiXianPiShu" ErrorMessage="*" 
                                    Operator="DataTypeCheck" Type="Double" ValidationGroup="Group"></asp:CompareValidator>
                            </td>
                            <td>
                                <asp:Label ID="Label_zaixianpishi" runat="server" Text="在线批时：" SkinID="Label"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="TextBox_ZaiXianPishi" runat="server" ValidationGroup="Group" SkinID="TextBox"></asp:TextBox>
                                <asp:CompareValidator ID="CompareValidator12" runat="server" 
                                    ControlToValidate="TextBox_ZaiXianPishi" ErrorMessage="*" 
                                    Operator="DataTypeCheck" Type="Double" ValidationGroup="Group"></asp:CompareValidator>
                            </td>
                        </tr>
                        <tr>
                            <td >
                                <asp:Label ID="Label_muyeshuliang" runat="server" Text="母液数量(Kg)：" SkinID="Label"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="TextBox_MuYeShuLiang" runat="server" SkinID="TextBox"></asp:TextBox>
                                <asp:CompareValidator ID="CompareValidator13" runat="server" 
                                    ControlToValidate="TextBox_MuYeShuLiang" ErrorMessage="*" 
                                    Operator="DataTypeCheck" Type="Double" ValidationGroup="Group"></asp:CompareValidator>
                            </td>
                            <td>
                                <asp:Label ID="Label_muyehuishoulv" runat="server" Text="母液折批数：" SkinID="Label"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="TextBox_MuYeHuiShouLv" runat="server" SkinID="TextBox"></asp:TextBox>
                                <asp:CompareValidator ID="CompareValidator14" runat="server" 
                                    ControlToValidate="TextBox_MuYeHuiShouLv" ErrorMessage="*" 
                                    Operator="DataTypeCheck" Type="Double" ValidationGroup="Group"></asp:CompareValidator>
                            </td>
                        </tr>
                        <tr>
                            <td >
                                &nbsp;</td>
                            <td>
                                &nbsp;</td>
                            <td>
                                &nbsp;</td>
                            <td>
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td >
                                <asp:Label ID="Label20" runat="server" Text="损失批数：" SkinID="Label"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="TextBox_ShunshiPishu" runat="server"></asp:TextBox>
                                <asp:CompareValidator ID="CompareValidator_ShunshiPishu" runat="server" 
                                    ErrorMessage="*" ControlToValidate="TextBox_ShunshiPishu" 
                                    Operator="DataTypeCheck" Type="Double" ValidationGroup="Group"></asp:CompareValidator>
                            </td>
                            <td>
                                <asp:Label ID="Label21" runat="server" Text="损失批时：" SkinID="Label"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="TextBox_ShunShiPiShi" runat="server"></asp:TextBox>
                                <asp:CompareValidator ID="CompareValidator_ShunShiPiShi" runat="server" 
                                    ErrorMessage="*" ControlToValidate="TextBox_ShunShiPiShi" 
                                    Operator="DataTypeCheck" Type="Double" ValidationGroup="Group"></asp:CompareValidator>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td >
                    <asp:Button SkinID = "Button" ID="Button_Save" runat="server" Text="保存" 
                        oncommand="Button_Save_Command" ValidationGroup="Group" />
                    <asp:Button SkinID = "Button" ID="Button_Delete" runat="server" onclick="Button_Delete_Click" 
                        onclientclick="return confirm('确定删除当前记录吗？')" Text="删除" />
                    </td>
            </tr>
            <tr>
                <td>
                    <asp:HiddenField ID="AddFlag" runat="server" Value="0"/>
                    <asp:HiddenField ID="HiddenField_MyID" runat="server" />
                    <asp:HiddenField ID="ShowPageInfo" runat="server" Value="0"/>
                    <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
                        ContextTypeName="Hisun.Models.HisunDBDataContext" Select="new (中间体ID, 中间体名称)" 
                        TableName="TABC_JS_ProductInProcess" 
                        Where="作业中心ID == @作业中心ID &amp;&amp; 可用 == @可用">
                        <WhereParameters>
                            <asp:ControlParameter ControlID="DropDownList_CostCenterId" Name="作业中心ID" 
                                PropertyName="SelectedValue" Type="Int32" />
                            <asp:Parameter DefaultValue="True" Name="可用" Type="Boolean" />
                        </WhereParameters>
                    </asp:LinqDataSource>
                </td>
            </tr>
            <tr>
                <td >

                    

                    &nbsp;</td>
            </tr>
        </table>
    
    </div></div>
    </form>
</body>
</html>
<%=alter %>